parsing ls is a bad idea